package com.wf.ew.system.service;

import com.wf.ew.common.JsonResult;
import com.wf.ew.common.PageResult;
import com.wf.ew.system.model.Dictionary;
import com.wf.ew.system.model.User;
import org.apache.poi.ss.formula.functions.T;

/**
 *
 * 数据服务层接口
 * @author : Doman
 * @date : 2019-08-06 16:04:44
 * @version ：1.0
 */
public interface DictionaryService {
	/**
	 *
	 * @param page
	 * @param dictionary
	 * @return
	 */
	public String list(PageResult<T> page, Dictionary dictionary); //获取表格

	/**
	 *
	 * @param dictionary
	 * @return
	 */
	public Dictionary getById(Dictionary dictionary); //根据Id查询

	/**
	 *
	 * @param dictionary
	 * @param loginUser
	 * @return
	 */
	public JsonResult add(Dictionary dictionary, User loginUser); //保存

	/**
	 *
	 * @param dictionary
	 * @param loginUser
	 * @return
	 */
	public JsonResult update(Dictionary dictionary, User loginUser); //修改

	/**
	 *
	 * @param dictionary
	 * @param loginUser
	 * @return
	 */
	public JsonResult delete(Dictionary dictionary, User loginUser); //删除

	/**
	 * dict_code unique
	 * @param dictionary
	 * @return
	 */
	public JsonResult dict_code_unique(Dictionary dictionary); //删除

}
